package org.dream.domain;

/**
 * @author qiuriyuchen E-mail:panpan_001@126.com
 */
public class ImitationDeal {
	private String date;//成交日期
	public double price;	// 成交价格
	private int num;// 成交数量
	private double money;//金额
	private String stockCode;//股票代码
	private String kind;//买卖类型
	private Daydeal daydeal;
	private double cause;	//成交原因
	private double yuer;// 余额
	public int haveNum;// 持股数量


	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public double getYuer() {
		return yuer;
	}

	public void setYuer(double yuer) {
		this.yuer = yuer;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getKind() {
		return kind;
	}
	public String getKindView() {
		if(this.kind.equals("1")){
			return "买入";
		}else{
			return "卖出";
		}
	}
	public void setKind(String kind) {
		this.kind = kind;
	}

	public double getCause() {
		return cause;
	}

	public void setCause(double cause) {
		this.cause = cause;
	}

	public Daydeal getDaydeal() {
		return daydeal;
	}

	public void setDaydeal(Daydeal daydeal) {
		this.daydeal = daydeal;
	}

}
